<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "hy_theme".
 *
 * @property int $id ID
 * @property string $title 主题名称
 * @property string $colour 主题色值
 * @property string $created_at 添加时间
 * @property string $updated_at
 * @property string $deleted_at
 */
class HyTheme extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'hy_theme';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['created_at', 'updated_at', 'deleted_at'], 'safe'],
            [['title', 'colour'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'title' => 'Title',
            'colour' => 'Colour',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
            'deleted_at' => 'Deleted At',
        ];
    }
}
